<%@ page contentType="text/html;charset=UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ taglib prefix="shiro" uri="http://shiro.apache.org/tags" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %> 
<%@ taglib prefix="tags" tagdir="/WEB-INF/tags" %>
<c:set var="ctx" value="${pageContext.request.contextPath}"/>

<html>
<head>
	<title>_同步仁清库存结果</title>
</head>

<body>

    <div>
	   <a class="btn btn-primary" href="${ctx}/synStockForLKE">返回同步页面</a>
	</div>
   
	<!-- 同步结果 -->
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="14"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >同步结果 </th>
		<tr>
		</thead>
		<tbody>
		   <tr>
			  <td>信息</td><td>${message}</td> 
			</tr>
			<tr>
			  <td>数量总量（条）</td><td>${total}</td> 
			</tr>
			<tr>
			  <td>已同步数据（条）</td><td>${rightList.size()}</td>
			</tr>
			<tr>
			  <td>异常数据（条）</td><td>${errorList.size()}</td>
			</tr>
		</tbody>
	</table>
	
	
	<!-- 异常数据 -->
	<table  class="table table-striped table-bordered table-condensed">
		<thead>
		<tr bgcolor="#3FA8F3" >
		   <th colspan="2"  style="height: 30px;font-size: 18px;color: white; vertical-align: middle;" >以下订单数据异常,请核对后重新同步</th>
		<tr>
		</thead>
		<tbody>
		    <c:if test="${empty errorList or errorList.size() eq 0}">
			     <tr><td colspan="2" height="50" style="vertical-align:middle; text-align: center;color: gray;font-size: 20px;">无数据</td></tr>
		  </c:if>
			<c:forEach items="${errorList}" var="error">
			<tr>
			   <td>${error[0]}</td>
			   <td>${error[1]}</td>
			</tr>
			</c:forEach>
		</tbody>
	</table>
	
</body>
</html>
